import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		hasLogin: false,
		name: '',
		// 收藏
		collect: [{}]
	},
	mutations: {
		setadd(state, value) {
			state.name = value
		},
		// 收藏
		collects(state, value) {
			state.collect = value
		}
	},


	actions: {

	}
})

export default store
